﻿using Function;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace UI.Module.Statistical
{
    public partial class PieIndex : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadPage();
            }
        }
        string Message = "";
        private void LoadPage()
        {
            int RecordCount = 0;
            DataTable Page_Dt = new DataTable();
            Page_Dt = BLL.PageQuery2005_BLL.SelectPage(out RecordCount, "ShopID,(select STitle from dbo.ST_Shop where id=ShopID)as STitle", "GX_InvestorShop", " InvestorID=" + Method.CurrentUserID, "[ID] desc", PubConstant.DataBaseTarget.JHShop, out Message);
            ddlistShop.DataSource = Page_Dt;
            ddlistShop.DataTextField = "STitle";
            ddlistShop.DataValueField = "ShopID";
            ddlistShop.DataBind();

            DataTable Page_Dt2 = new DataTable();
            Page_Dt2 = BLL.PageQuery2005_BLL.SelectPage(out RecordCount, "statmonth", "TJ_SellGoodsTypeByMonth group by statmonth", "", "statmonth desc", PubConstant.DataBaseTarget.JHShop, out Message);
            ddlistdate.DataSource = Page_Dt2;
            ddlistdate.DataTextField = "statmonth";
            ddlistdate.DataValueField = "statmonth";
            ddlistdate.DataBind();
        }
    }
}